# Maintainer: David Sugar <tychosoft@gmail.com>
# Contributor: David Sugar <tychosoft@gmail.com>
pkgname=libexosip2
pkgver=5.1.1
pkgrel=0
pkgdesc="Extended osip2 library"
url="http://savannah.nongnu.org/projects/exosip"
arch="all"
license="GPL-2.0-or-later"
depends="openssl libosip2 c-ares"
makedepends="
	autoconf
	automake
	libtool
	pkgconf
	c-ares-dev
	libosip2-dev
	openssl-dev
"
options="libtool"
subpackages="$pkgname-dev"
source="http://download.savannah.nongnu.org/releases/exosip/libexosip2-$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--disable-tools \
		--enable-pthread \
		--with-gnu-ld
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="cec5931484aa1a5e4a0679cc715da163df9429016ad74841a518c52c2bea6d9038a312b252802607d9a836bd2e598e2f3a4a24a9f63b34a0fb8c737f32329b96  libexosip2-5.1.1.tar.gz"
